{template header}

    {template sidebar}

    <!-- artile begin -->
    <div class="article">
        {template title}
        <!--{if  $a == 'index'|| $a=='search'}-->
        <form class="form-search" action="{$this->url($c, 'search', $this->get())}">
            <table>
                <tr><td class="td1" width="20%">旺旺ID：</td>
                    <td>

                        <div class="input-append">
                            <input type="text" name="key" class="span2 search-query" placeholder="请输入旺旺ID" />
                            <button type="button" class="btn search">搜索</button>
                        </div>
                    </td >
                </tr>
            </table>

        </form>
        <table>
            <tr>
                <th width="5%"><input type="checkbox" class="all" /></th>
                <th width="15%">旺旺ID</th>
                <th width="20%">销售单号</th>
                <th width="15%">评价日期</th>
                <th width="15%">评价类型</th>
                <th width="10%">操作</th>
            </tr>
        <!--{if $result}-->
            <!--{loop $result $v}-->
            <tr>
                <td><input type="checkbox" name="id" value="{$v['id']}" /></td>
                <td>{$v['wwId']}</td>
                <td>{$v['orderNo']}</td>
                <td>{$v['evaluateDate']}</td>
                <td>{$v['type']}</td>
                <td class="operate">
                    <a href="{$this->url($c,'look',array('id'=>$v['id']))}">查看</a>
                </td>
            </tr>
            <!--{/loop}-->
        <!--{else}-->
            <tr>
                <td colspan="6">没有记录!</td>
            </tr>
            <!--{/if}-->
        </table>
        <!--{/if}-->
        <!--{if  $a == 'search'}-->
            <table>
                <tr>
                    <td class="td1" width="30%">总销售笔数：</td>
                    <td class="td2" colspan="3">
                        <input type="text" size="30" name="title" placeholder="请输入供货商名称" class="required" value="{$statics['total']}" />
                    </td>
                </tr>
                <tr>
                    <td class="td1" width="30%">好评数：</td>
                    <td class="td2" colspan="3">
                        <input type="text" size="30" name="title" placeholder="请输入采购日期" class="required" value="{$statics['goodComment']}" />
                    </td>
                </tr>
                <tr>
                    <td class="td1" width="30%">差评数：</td>
                    <td class="td2" colspan="3">
                        <input type="text" size="30" name="title" placeholder="请输入采购日期" class="required" value="{$statics['badComment']}" />
                    </td>
                </tr>
            </table>

        <!--{/if}-->
        <!--{if  $a == 'look'}-->
           <table>
               <tr>
                   <td class="td1" width="30%">旺旺ID：</td>
                   <td class="td2" colspan="3">
                       <input type="text" size="30" name="orderNo" placeholder="" class="required" value="{$a== 'look' ?$result['wwId']:''}" />
                   </td>
               </tr>
                <tr>
                    <td class="td1" width="30%">销售单号：</td>
                    <td class="td2" colspan="3">
                        <input type="text" size="30" name="orderNo" placeholder="" class="required" value="{$a== 'look' ?$result['orderNo']:''}" />
                    </td>
                </tr>
                <tr>
                    <td class="td1" width="30%">评价类型：</td>
                    <td class="td2" colspan="3">
                        <input type="text" size="30" name="type" placeholder="" class="required" value="{$a == 'look' ? $result['type'] : ''}" />
                    </td>
                </tr>

                <tr>
                    <td class="td1" width="30%">评价日期：</td>
                    <td class="td2" colspan="3">

                        <input type="text" size="30" name="evaluateDate" placeholder="" class="required" value="{$a == 'look' ? $result['evaluateDate'] : ''}" />
                    </td>
                </tr>
                <tr>
                    <td class="td1" width="30%">评价内容：</td>
                    <td class="td2" colspan="3">

                        <input type="text" size="30" name="content" placeholder="" class="required" value="{$a == 'look' ? $result['content'] : ''}" />
                    </td>
                </tr>

           </table>
          <!--{/if}-->

        </div>


    <!-- artile end -->
{template footer}